package com.googlecode.imule.data;

import java.util.LinkedList;
import java.util.List;

public class Action {
	
	private String name;
	
	private String type;
	
	private String id;
	
	private List<Argument> arguments;
	
	public Action() {
		arguments = new LinkedList<Argument>();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public List<Argument> getArguments() {
		return arguments;
	}

	public void addArgument(Argument argument) {
		arguments.add(argument);
	}
	
	@Override
	public String toString() {
		return "ACTION: " +type +", " + name;
	}
	
}
